package student.aistar.service;

import org.springframework.messaging.handler.annotation.Headers;
import student.aistar.model.entity.Orders;
import student.aistar.model.entity.WebSeckill;

import java.nio.channels.Channel;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 本类用来演示:  秒杀业务
 *
 * @author: qinFeng
 * @date: 2021/10/11 20:53
 */
public interface ITVSeckillService {
    List<Map<String,Object>> beforeActive();

    void updateState();

    List<Long> findKillId();

    void endActive();

    List<Long> findEndId();

    String getStateByKillId(Integer killId);

    void generateSpikeOrder(Integer userId, Integer killId);

    int insertOrders(Orders order);

    void insertOrderDetail(Integer orderId);

    WebSeckill getSeckillTime(Integer productId);
}
